package com.alipay.app.groupmeal.standard.ui.b.util;

import android.content.Context;

import com.alipay.app.groupmeal.standard.http.SysRetrofitHelper;
import com.alipay.app.groupmeal.standard.http.bean.resp.Result;
import com.alipay.app.groupmeal.standard.http.bean.resp.ShopMachine;

import io.reactivex.rxjava3.internal.observers.BlockingBaseObserver;

public class SysCenterHttpUtil {

    private Context context;


    public SysCenterHttpUtil(Context activity) {
        this.context = activity;
    }

    /**
     * 获取订餐餐次
     *
     * @param observer
     */
    public void intDevice(BlockingBaseObserver<Result<ShopMachine>> observer) {
        SysRetrofitHelper.getInstance().bindDevice()
                .compose(RxHelper.rxSchedulerHelper())
                .subscribeWith(observer);
    }

}
